package polsl.hd.strumieniowa;

import java.util.Date;
import java.util.Random;

public class Generator {
	
	private static Random random = new Random();
	
	public static Krotka losuj() {
		int l = (int)random.nextInt() % 5;
		if(l<0) {
			l = l - 2*l;
		}
		
		Krotka krotka = new Krotka(l, new Date());
		return krotka;
	}
}
